package cn.hiapi.shop.query;

import cn.hiapi.basic.jpa.pageable.QueryWrapper;
import cn.hiapi.basic.jpa.query.BasicQuery;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author AdinZ
 * @date 2023/2/5 6:23
 */
@Setter
@Getter
public class ShopUserQuery extends BasicQuery {
    private String mobile;
    private Long uid;
    private String nickname;
    private List<Long> uids;
    private long shopId;

    @Override
    public QueryWrapper getQueryWrapper() {
        QueryWrapper wrapper = super.getBasicQueryWrapper();
        wrapper.eq("shopId", shopId);
        wrapper.eq("uid", uid);
        wrapper.in("uid", uids);
        return wrapper;
    }
}
